package com.zjzywl.smoke.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zjzywl.smoke.repository.OrganizationRepository;
import com.zjzywl.smoke.entity.Organization;

@RestController
@RequestMapping(value = "/lp")
public class LPController extends BaseController {

	@Autowired
	private OrganizationRepository repository;

	@RequestMapping(value = "/orglist")
	public List<Organization> test() {
		List<Organization> orgs = repository.findAll();
		return orgs;
	}

}
